import request from '@/utils/request'

// 查询楼宇办公/商用列表
export function listBuilding(query) {
  return request({
    url: '/industry/building/list',
    method: 'get',
    params: query
  })
}

// 查询楼宇办公/商用详细
export function getBuilding(id) {
  return request({
    url: '/industry/building/' + id,
    method: 'get'
  })
}

// 新增楼宇办公/商用
export function addBuilding(data) {
  return request({
    url: '/industry/building',
    method: 'post',
    data: data
  })
}

// 修改楼宇办公/商用
export function updateBuilding(data) {
  return request({
    url: '/industry/building',
    method: 'put',
    data: data
  })
}

// 删除楼宇办公/商用
export function delBuilding(id) {
  return request({
    url: '/industry/building/' + id,
    method: 'delete'
  })
}
//导出免费服务委托书
export function getEntrust(id){
  return request({
    url: '/industry/building/entrust?id=' + id,
    method: 'get',
  })
}
